﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="GoodSearch_New.ascx.cs"
    Inherits="UserControls_GoodSearch_New" %>

<script type="text/javascript" src="js/Shop.js"></script>

<script src="Components/JQuery/JavaScript/jquery.js" type="text/javascript"></script>

<script language="javascript" type="text/javascript">  

    //添加层  
    function D_Over()
    {                                   
        Ajax.Good.GetCookieItems("carList",OutGoodItem_back);
        //层位置确定，显示层
        var div = document.getElementById("divSearch");    
        var X = document.getElementById("aa").offsetLeft + 700;      
        var Y = document.body.scrollTop + event.clientY + 14;    
        div.style.left = X;                                   
        div.style.top = Y;                
        div.style.display = "block"; 				
    } 
    
    //隐藏层
    function D_Out()
    {        
        var div = document.getElementById("divSearch");                                    
        div.style.display = "none";                   
    }  
    
    /***
    * 参数e 是对象传递的触发事件 FF下想访问event对象必须传递event参数
    * 参数o 是目标DIV对象
    */   
    function fun(e,o) { 
    /* FF 下判断鼠标是否离开DIV */
    if(window.navigator.userAgent.indexOf("Firefox")>=1) { 
        var x = e.clientX + document.body.scrollLeft;
        var y = e.clientY + document.body.scrollTop ;
        var left = o.offsetLeft;
        var top = o.offsetTop;
        var w = o.offsetWidth;
        var h = o.offsetHeight;
        
        if(y < top || y > (h + top) || x > left + w || x<left ) { 
            D_Out();
        }
    }

    /* IE */
    if(o.contains(event.toElement ) == false) 
         D_Out();
    
    }
    
    function OutGoodItem_back(respon)
    {      
        var Ajaxstring = respon.value;
        document.getElementById("divSearch").innerHTML = Ajaxstring;       
    }
                
    function DeleteGood(proid)
    {
        Common.reMoveOne(proid,"carList");
        Ajax.Good.GetCookieItems("carList",OutGoodItem_back);
    }

</script>

<link href="Style/sitecss.css" rel="stylesheet" type="text/css" />
<table width="966" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td height="44" valign="top">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td height="74" valign="top" background="images/UserControls/index_1.jpg">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td height="3">
                                </td>
                            </tr>
                        </table>
                        <table width="96%" border="0" align="center" cellpadding="2" cellspacing="0">
                            <tr>
                                <td height="26" colspan="2">
                                </td>
                            </tr>
                            <tr>
                                <td width="62%">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td>
                                                <table width="101%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr background="images/UserControls/sbg.jpg">
                                                        <td width="13%" height="22" background="images/UserControls/sbg.jpg">
                                                            <span class="STYLE2">搜索商品：</span>
                                                        </td>
                                                        <td width="51%">
                                                            <div align="center">
                                                                <asp:TextBox ID="txtKeyWord" runat="server" Height="20px" Width="100%"></asp:TextBox>
                                                            </div>
                                                        </td>
                                                        <td width="25%">
                                                            <div align="center">
                                                                <asp:DropDownList ID="ddlGoodType" runat="server" Height="20px" Width="120px">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </td>
                                                        <td width="11%">
                                                            <div align="center">
                                                                <asp:Button ID="btnSearch" runat="server" Text="搜 索" OnClick="btnSearch_Click" />
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td width="38%">
                                    <table width="325" border="0" align="right" cellpadding="0" cellspacing="0" background="images/UserControls/index_1_08.jpg">
                                        <tr>
                                            <td width="7" background="images/UserControls/ta5.jpg">
                                                <img src="images/UserControls/index_1_07.jpg" width="76" height="26" />
                                            </td>
                                            <td width="360" background="images/UserControls/ta5.jpg" class="Time">
                                                | <a href="Default.aspx?PN=member_home" class="like-1">我的账户</a> | 
                                                
                                                
                                                <a href="Default.aspx?PN=cart" onmouseover="D_Over()" id="aa" class="like-1">我的购物车</a> 
                                                
                                                
                                                    | <a href="Default.aspx?PN=member_homeOrder"
                                                        class="like-1">订单查询</a>
                                            </td>
                                            <td width="1">
                                                <img src="images/UserControls/index_1_09.jpg" width="5" height="26" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
